<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
</head>
<body>
	<ul>
		<li>1</li>
		<li>2</li>
		<li>3</li>
		<li>4</li>
		<li>5</li>

	</ul>
	<script type="text/javascript">
		// 删除节点 removeChilde(子节点) 调用者是父元素
		let ul = document.getElementsByTagName("ul")[0]
		ul.removeChild(ul.children[1])

		// remove() 调用者是自己 自己删自己
		let li = document.getElementsByTagName("li")[0]
		li.remove()
	</script>
</body>
</html>